package control;

import model.Passenger;
import model.Plane;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        PassengerController controller = new PassengerController();
//        String bookNumber = "111";

//       String currentPlaneNum = "z111";
//        String col = "2";
//        String row = "2";
//        String food = "bread";
        Passenger a = controller.queryBySurnameAndID("Tom","320611200108094000");
//        a.setCurrentPlaneNum("z111");
//        int[][] site = controller.siteCondition(a);
//        for (int i = 0; i < site.length; i++) {
//            for (int j = 0; j < site[i].length; j++) {
//                System.out.print(site[i][j]);
//            }
//            System.out.println();
//        }
//        controller.selectSeat(bookNumber,currentPlaneNum,row,col);
//        controller.selectFood(bookNumber,currentPlaneNum,food);
//        controller.chooseService(bookNumber);

        String bookNumber = "13301485561";
        System.out.println(controller.checkBookNumber(bookNumber));
        String ID = "320611300108094018";
        System.out.println(controller.checkIDNumber(ID));
    }
}
